package com.bkgy.controller.outputRecord.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bkgy.controller.outputRecord.entity.RepBreakRecord;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface IOutputRecordMapper extends BaseMapper<RepBreakRecord> {
    List<RepBreakRecord> selectByMonth();

    List<RepBreakRecord> selectByDaily();

    List<RepBreakRecord> selectByDay();

    List<RepBreakRecord> selectByNight();

    /**
     * 当班第一个班组名
     */
    String getTcm2280TopOneCrew(String levelDate);

    /**
     * 班组最高记录
     */
    BigDecimal getTopRecordCrew(String lineName, String dateType);

    /**
     * 查询班产量
     */
    BigDecimal getTcmOutputWt(String beginDate, String endDate);
}
